MODE ?= debug
# MODE ?= release

TARGET :=
# TARGET := x86_64-pc-windows-msvc

FLAGS :=

ifneq ($(TARGET),)
	FLAGS += --target $(TARGET)
endif

ifeq ($(MODE), release)
	FLAGS += -r
endif

c: check

check:
	@cargo c

b: build

build:
	@cargo b $(FLAGS)

r: run

run:
	@cargo r $(FLAGS)

clean:
	@cargo clean

.PHONY: c check b build r run clean
